package com.bidepan.spring6.resourceloaderaware;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ResourceLoader;

public class Test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        ResourceLoaderAwareDemo resourceLoaderAwareDemo = context.getBean("resourceLoaderAwareDemo",ResourceLoaderAwareDemo.class);
        ResourceLoader resourceLoader = resourceLoaderAwareDemo.getResourceLoader();
        System.out.println(context.getClass());
        System.out.println(context == resourceLoader);
    }
}
